import Mock from 'mockjs';
Mock.mock("/coordinate","get",{
  data:[
    {
      number: '1',
      coordinate: '[119.1, 26.04]',
    }, {
      number: '2',
      coordinate: '[119.2, 26.04]',
    }, {
      number: '3',
      coordinate: '[119.3, 26.04]',
    }, {
      number: '4',
      coordinate: '[119.4, 26.14]',
    }
  ]
});

Mock.mock("/info","get",{
  data:{
    coordinate:[119.38, 26.01],
    location: "Fuzhouzzz",
    updateTime: "2021-11-1"
  }
})

Mock.mock("/device","get",{
  data:[{// 设备列表
    id: 0,
    sn: 'SN111111',
    coordinate: [119.4, 26.08],
  }, {
    id: 1,
    sn: 'SN2',
    coordinate: [119.3, 26.18],
  }, {
    id: 2,
    sn: 'SN3',
    coordinate: [119.3, 26.28],
  }, {
    id: 3,
    sn: 'SN411111',
    coordinate: [119.3, 26.38],
  }, {
    id: 4,
    sn: 'SN5555511111',
    coordinate: [119.4, 26.38],
  }]
})


Mock.mock("/geoFenceInfo","get",{
  data:{
    name: 'test fence1a11',
    radius: '100',
    email: '12345678@qq.com',
    terminal: '17',
  }
})
